<include file="__THEME__/header" />
<script type="text/javascript" src="../Public/Js/common.js"></script>
<link  href="../Public/layout.css" rel="stylesheet" type="text/css"/>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>
<include file="../Public/_mainNav" />
<div class="content"><!-- 内容 begin  -->
<div class="main no_l">
  <!-- 右侧内容 begin  -->
  <div class="mainbox"> <include file="../Public/_isHotList" />
    <div class="mainbox_C">
    <div class="tab-menu">
          <!-- 切换标签 begin  -->
          <ul>
              <li><a href="{:U('group/SomeOne/index')}" 
              <eq name="ACTION_NAME" value="index">class="on"</eq>
              ><span>{$current_uname}的群组</span></a></li>
          </ul>
        </div>
        <div class="MenuSub" style="margin:0px;"> 
          <a href="{:U('group/SomeOne/index')}" <if condition="$type eq 'all'">class="on"</if>>全部</a>|
          <a href="{:U('group/SomeOne/index',array('uid'=>$uid,'type'=>'manage'))}" 
          <if condition="$type eq 'manage'">class="on"</if>
          >{$current_uname}管理的{$ts['app']['app_alias']}</a>|
          <a href="{:U('group/SomeOne/index',array('uid'=>$uid,'type'=>'join'))}" 
          <if condition="$type eq 'join'">class="on"</if>
          >{$current_uname}加入的{$ts['app']['app_alias']}</a>|
          <a href="{:U('group/SomeOne/index',array('uid'=>$uid,'type'=>'following'))}" 
          <if condition="$type eq 'following'">class="on"</if>
          >{$current_uname}关注的人的{$ts['app']['app_alias']}</a>
        </div>
      <div class="groupBox mLR15">
        <div class="boxL"><!-- 好友日志 begin  -->
          <ul class="search">
            <volist name="grouplist['data']" id="group">
              <li class="lineD_btm">
                <div class="left" style="width: 70px;">
                	<span class="group_pic">
                		<a href="{$group['id']|group_id_to_url}"><img src="{$group['logo']|logo_path_to_url}"/></a>
                	</span>
                </div>
                <div class="right rmenu" style="width: 60px;">
                  <if condition="$group['status'] eq 1">
	                  <a href="{:U('group/Group/index',array('gid'=>$group['id']))}">浏览该群</a>
	                  <php>$level = getLevel($uid, $group['id']);</php>
	                  <php>if($level===null){</php>
	                  <a href="javascript:joingroup({$group['id']});">加入该群</a>
	                  <php>} else if($level==='0'){</php>
	                  &nbsp;成员审核
	                  <php>} else if($level==1 || $level==2){</php>
	                  <a href="{:U('group/Manage/index',array('gid'=>$group['id']))}">管理该群</a>
	                  <php>} else if($level==3){</php>
	                  &nbsp;该群成员
	                  <php>}</php>
	              <else />
	                  &nbsp;群组审核
	                  <a href="javascript:;" onclick="delgroup({$group['id']});" >解散该群</a>
	              </if>
                </div>
                <div style="margin: 0pt 70px 0pt 75px;">
                  <h3><if condition="$group['status'] eq 1"><a href="{:U('group/Group/index',array('gid'=>$group['id']))}">{$group['name']}</a><else />{$group['name']}</if></h3>
                  <p>成员：{$group['membercount']}</p>
                  <p>创建：{$group['ctime']|friendlyDate}</p>
                  <p>类型：{$group['cid0']|getCategoryName}</p>
                </div>
                <div class="c"></div>
              </li>
            </volist>
          </ul>
          <div class="page">{$grouplist['html']}</div>
        </div>
        <!-- 好友日志 end  -->

      </div><div class="c"></div>
    </div>
    <div class="c"></div>
  </div></div>
  <!-- 右侧内容 end  -->
</div>
<!-- 内容 end -->
<include file="__THEME__/footer" /> 